package com.seezoon.infrastructure.tcp.jt808;


import com.seezoon.infrastructure.tcp.codec.JT808;
import com.seezoon.infrastructure.tcp.common.Encoding;
import com.seezoon.infrastructure.tcp.common.MessageField;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * @see JT808#位置信息汇报
 */
@Getter
@Setter
@ToString
public class JT0200 {

    @MessageField(desc = "报警标志")
    private long warnBit;
    @MessageField(desc = "终端状态")
    private long statusBit;
    @MessageField(desc = "纬度")
    private long latitude;
    @MessageField(desc = "经度")
    private long longitude;
    @MessageField(desc = "高程(米)")
    private int altitude;
    @MessageField(desc = "速度(1/10公里每小时)")
    private int speed;
    @MessageField(desc = "方向")
    private int direction;
    @MessageField(length = 6, desc = "时间(YYMMDDHHMMSS)", encoding = Encoding.BCD)
    private String deviceTime;
    @MessageField(desc = "附加信息")
    private byte[] attributes;


}